// pages/reviewDetails/reviewDetails.js
Page({
    data: {
        indicator:1,//当前切换指示位置
        renderTxt:[
            `Man:` ,
            ` Goodbye, I can't believe our time together has come to an end.`,
            ` Woman: 就阿萨德`,
            ` Woman: `,
           `Goodbye. You have worked hard and showcased great potential. I am confident in your future success. `,
        ],
    },

    /**
     * 生命周期函数--监听页面加载
     */
    onLoad(options) {
    },
    /**
     * 生命周期函数--监听页面初次渲染完成
     */
    onReady() {

    },

    /**
     * 生命周期函数--监听页面显示
     */
    onShow() {

    },

    /**
     * 生命周期函数--监听页面隐藏
     */
    onHide() {

    },

    /**
     * 生命周期函数--监听页面卸载
     */
    onUnload() {

    },

    /**
     * 页面相关事件处理函数--监听用户下拉动作
     */
    onPullDownRefresh() {

    },

    /**
     * 页面上拉触底事件的处理函数
     */
    onReachBottom() {

    },

    /**
     * 用户点击右上角分享
     */
    onShareAppMessage() {

    },
    /**
     * 点击切换swiper
     * @param {*} e 
     */
    swipercheck(e){
        console.log(1,e.detail.current);
        const indicator = e.detail.current+1
        this.setData({
            indicator
        })
    },
    ClickTabs(e){
        console.log(e.currentTarget.dataset.index);
        this.setData({
            indicator:e.currentTarget.dataset.index
        })
    },
    /**
     * 点击单词回调
     */
    detailedWord(e){
        // console.log(e.detail.MarkersTxT,'detailedWord');
        // const ClickWord = this.selectComponent('.ClickWord')
        // ClickWord.setData({MarkersTxT:e.detail.MarkersTxT})
        // console.log(ClickWord,'ClickWordClickWord');
        
    }
})